package hlhj.com.carviewpad

import android.os.Bundle
import com.example.mymvp.mvp.BaseMvpAty
import com.example.mymvp.mvp.BasePresenter
import com.example.mymvp.mvp.BaseView
import com.gyf.barlibrary.ImmersionBar

/**
 * Created by Never Fear   on 2018\12\28 0028.
Never More....
 */
abstract class BaseAty<V:BaseView,P:BasePresenter<*,V>> :BaseMvpAty<V,P>() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(getContentId())
        ImmersionBar.with(this).init()
        supportActionBar?.hide()
        presenter?.initView()
        presenter?.setListener()
        presenter?.logicStart()
    }

    abstract fun getContentId(): Int
}